package com.chub.study.modules.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chub.study.modules.dto.StudInfoDTO;
import com.chub.study.modules.entity.PsnInfo;
import com.chub.study.modules.entity.PsnInfoDTO;
import com.chub.study.modules.entity.TStudInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 学生信息表 服务类
 * </p>
 *
 * @author chub
 * @since 2021-08-26
 */
public interface TStudInfoService extends IService<TStudInfo> {

    List<TStudInfo> getStudListByProcedure(@Param("in_bjbh") String in_bjbh);

    List<Map<String, Object>> getStudListMapByProcedure(@Param("in_bjbh") String in_bjbh);


    TStudInfo studentRegister(TStudInfo studInfo) throws Exception;


    List<TStudInfo> getStudListByMap(@RequestBody Map<String, String> studInfo);

    int batchInsert(int totalCnt, int batchNum);

    /**
     * 分页查询
     *
     * @param reqDto
     * @return
     */
    IPage<TStudInfo> selectStudListByPage(StudInfoDTO reqDto);

}
